var express = require('express')
var router = express.Router()
const commentCtrl = require('../controller/comment')
const commentValidator = require('../validator/comment')

// 添加评论
router.post('/comment', commentValidator.addComment, commentCtrl.addComment)
//删除评论
router.delete('/comment/:id', commentValidator.deleteComment, commentCtrl.deleteComment)

module.exports = router
